<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/13
 * Time: 10:44
 * 查询学情况
 */
$oct_oscid = $route->restfulParams['oct_oscid'];
$start_time = $route->restfulParams['start_time'];
$end_time = $route->restfulParams['end_time'];


$sql = "select COUNT(*) as num from art_oa_class_time where oct_oscid = ".$oct_oscid." and oct_performance != '' and oct_start_time > ".$start_time." and oct_start_time < ".$end_time;

$re=$db->mysqlDB->query($sql);

$rs = array("data" => $re[0]['num']);
//返回成功结果
$response->responseData(true, $rs);